// OutSchool/pages/outfood/outfood.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    active: 0,
    value: '',
    option: [
      { text: '排序', value: 0 },
      { text: '价格从高到低', value: 1 },
      { text: '价格从低到高', value: 2 },
      { text: '评论从高到低', value: 3 },
      { text: '评论从低到高', value: 4 },
    ],
    cangList:[
      {
        url:'/static/image/面.png',
        name:'好味来',
        mess:'位置<100km',
        price:'10￥'
      },
      {
        url:'/static/image/面2.png',
        name:'消记面馆',
        mess:'位置<10km',
        price:'12￥'
      },
      {
        url:'/static/image/面3.png',
        name:'百鲜煎包',
        mess:'位置>100km',
        price:'20￥'
      },
      {
        url:'/static/image/面4.png',
        name:'面福鸿',
        mess:'位置>30km',
        price:'20￥'
      },
      {
        url:'/static/image/面5.png',
        name:'牛肉面',
        mess:'位置<50km',
        price:'20￥'
      },
      {
        url:'/static/image/面6.png',
        name:'四季面条',
        mess:'位置<2km',
        price:'30￥'
      }
    ],
    NaiList: [
      {
        url:'/static/image/奶.png',
        name:'CoCo',
        mess:'位置<100km',
        price:'10￥'
      },
      {
        url:'/static/image/奶2.png',
        name:'茶百道',
        mess:'位置<10km',
        price:'12￥'
      },
      {
        url:'/static/image/奶3.png',
        name:'老司机',
        mess:'位置>100km',
        price:'20￥'
      },
      {
        url:'/static/image/奶4.png',
        name:'书宜烧仙草',
        mess:'位置>30km',
        price:'20￥'
      },
    ],
    ChiList:[
      {
        url:'/static/image/小.png',
        name:'小媳妇',
        mess:'位置<100km',
        price:'10￥'
      },
      {
        url:'/static/image/小2.png',
        name:'幸福小吃',
        mess:'位置<10km',
        price:'12￥'
      },
      {
        url:'/static/image/小3.png',
        name:'无名小吃',
        mess:'位置>100km',
        price:'20￥'
      },
      {
        url:'/static/image/小4.png',
        name:'麻辣烫',
        mess:'位置>30km',
        price:'20￥'
      },
      {
        url:'/static/image/小5.png',
        name:'四川名小吃',
        mess:'位置>30km',
        price:'20￥'
      },
    ],
    RiceList:[]
  },
  ToDetail() {
    wx.navigateTo({
      url: '/OutSchool/pages/OutDetail/OutDetail',
    })
  },
  getMonry() {
    wx.showToast({
      title: '领取成功',
      icon: 'success',
      duration: 2000
    })
  },
  getTittle() {
    wx.showToast({
      title: '添加成功',
      icon: 'success',
      duration: 2000
    })
  },
  onChange(event) {

  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})